package rlex.classes.program;

/*
 * ID :=  EXPRESSION
 */
public class ExpressionAffect extends Expression {
	private String identifier;
	private Expression exp;
	
	public String getIdentifier() {
		return identifier;
	}
	public void setIdentifier(String identifier) {
		this.identifier = identifier;
	}
	public Expression getExp() {
		return exp;
	}
	public void setExp(Expression exp) {
		this.exp = exp;
	}
	
	public String toString() {
		String ret = identifier + " := ";
		ret += exp.toString();
		return ret;
	}
	
	public void display(int level) {
		System.out.print(identifier + " := ");
		exp.display(0);
	}
	
	
}
